home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 5 / CD-ROM Today - The Disc (Issue 5)(November 1994).ISO / mac / Mac shareware / Education / RLaB / help / CONTINUE < prev    next >
Text File  |  1994-09-21  |  462b  |  24 lines

  1. CONTINUE:
  2.  
  3.     The continue statement in RLaB is similar to the C language
  4.     continue statement. When a continue statement is encountered,
  5.     it causes the next iteration of the enclosing for or while
  6.     loop to begin.
  7.  
  8.     For example, the following set of statements causes the
  9.     variable `i' to be printed when it's value is 2.
  10.  
  11.     > for (i in 1:3)
  12.       {
  13.         if (i == 2)
  14.         {
  15.           i ?
  16.         else
  17.           continue
  18.         }
  19.       }
  20.      i =
  21.             2
  22.  
  23. See Also: BREAK, FOR, WHILE
  24.